﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BL
{
    public class DonDatHangBL
    {
        DonDatHangQuery donHang = new DonDatHangQuery();
       

        //Thu Hien lam
        public List<DonDatHangDAL> LayDSDonHang()
        {
            return donHang.LayDSDonHang();
        }
        public List<DonDatHangDAL> LayDSDonHangChuaLienLac()
        {
            return donHang.LayDSDonHangChuaLienLac();
        }

        public List<DonDatHangDAL> LayDSDonHangTheoTrangThai(int ts)
        {
            return donHang.LayDSDonHangTheoTinhTrang(ts);
        }
        public List<DonDatHangDAL> LayDSDonHangTheoThoiGian(DateTime tuNgay, DateTime denNgay)
        {
            return donHang.LayDSDonHangTheoThoiGian(tuNgay, denNgay);
        }
        public List<DonDatHangDAL> LayDSDonHangTheoSapXep(string giatri)
        {
            return donHang.LayDSDonHangTheoSapXep(giatri);
        }
        public static bool XoaDonDatHang(string maDDH)
        {
            return DonDatHangQuery.XoaDonDatHang(maDDH);
        }
        public bool ThemDonDatHang(DonDatHangDAL dh)
        {
            return donHang.ThemDonDatHang(dh);
        }
        public bool CapNhatDonHang(DonDatHangDAL dh)
        {
            return donHang.CapNhatDonDatHang(dh);
        }
    }
}
